home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_33 / PlaceObject2_448_319 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  1.1 KB  |  56 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.car.dead)
  3.    {
  4.       _visible = false;
  5.       return undefined;
  6.    }
  7.    if(!_root.car.onfloor)
  8.    {
  9.       if(Key.isDown(39))
  10.       {
  11.          _visible = true;
  12.          if(!sound)
  13.          {
  14.             if(_root.sound)
  15.             {
  16.                _root.steamSide.start(0,99999);
  17.                sound = true;
  18.             }
  19.          }
  20.       }
  21.    }
  22.    if(_root.gravityType == "normal")
  23.    {
  24.       if(!Key.isDown(39) or _root.car.onfloor or _root.fake._rotation > 20 or _root.fake._rotation < -20)
  25.       {
  26.          _visible = false;
  27.          sound = false;
  28.          if(!_root.f3.sound)
  29.          {
  30.             _root.steamSide.stop();
  31.          }
  32.       }
  33.    }
  34.    if(_root.gravityType == "reverse")
  35.    {
  36.       if(!Key.isDown(39))
  37.       {
  38.          _visible = false;
  39.          sound = false;
  40.          if(!_root.f3.sound)
  41.          {
  42.             _root.steamSide.stop();
  43.          }
  44.       }
  45.    }
  46.    _X = _root.fake._x - 30;
  47.    if(_root.gravityType == "normal")
  48.    {
  49.       _Y = _root.fake._y - 14;
  50.    }
  51.    if(_root.gravityType == "reverse")
  52.    {
  53.       _Y = _root.fake._y + 10;
  54.    }
  55. }
  56.